<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    let a = '孙策s';
    let arr = ['刘备','孙尚香',"孙权","孙策","孙悟空","孙策",'曹操'];

    //find:数组的方法
    let result = arr.find(item=>{
        return a ==item;
    });
    console.log(result);
</script>